.invoice {
  border: 1px solid #CCC;
  box-shadow: 0 0 2px 0 #CCC;
  padding: 0 15px;
  color: #4c4c4c;
  width: 90%;
  margin-bottom: 24px;
  margin-left: 5%;
  & > .tip-wrap {
    padding: 18px 0 24px;
    .ant-alert {
      margin-top: 10px;
    }
  }
  .invoice-type {
    font-weight: 500;
    font-size: 18px;
    line-height: 30px;
    min-height: 30px;
    padding: 10px 0;
    border-bottom: 1px solid $divide-line;
    .ant-tag {
      margin-left: 8px;
      vertical-align: text-top;
    }
  }
  .invoice-detail-area {
    padding-top: 10px;
  }
  .invoice-row {
    line-height: 30px;
  }
  .invoice-title, .invoice-detail {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    .invoice-currency {
      color: #8c96b4;
      font-size: 18px;
      margin-right: 8px;
    }
    .invoice-amount {
      font-size: 18px;
      margin-right: 8px;
    }
  }
  .invoice-detail {
    &.text-decoration {
      text-decoration: line-through;
      color: #FA6478;
    }
  }
  .invoice-operate {
    height: 40px;
    line-height: 40px;
    font-size: 12px;
    a {
      margin-right: 10px;
    }
  }
  .file-upload .attachment-block {
    width: 55px;
    height: 55px;
    margin: -10px 0 0;
    box-shadow: none;
    padding: 0;
    img {
      width: 55px;
      height: 55px;
    }
  }
  .ie-file-upload-wrap .img-list-wrap .img-item {
    width: 55px;
    height: 55px;
    .img-item-wrap {
      width: 55px;
      height: 55px;
    }
  }

  .invoice-desc {
    padding: 10px;
  }

  .invoice-desc-title {
    background: #f2f2f2;
    padding: 6px 20px;
    margin: 0 -20px 20px;
  }

  .invoice-change {
    margin-top: 20px;
  }

  .invoice-change-content {
    font-weight: bolder;
    color: #666;
  }

  .invoice-change-detail {
    font-weight: normal;
    color: #CCCCCC;
    font-size: 12px;
  }

  .invoice-change-author {
    display: flex;
    justify-content: flex-end;
  }
}

.invoice-brief-mode {
  padding: 15px 0;
  width: 90%;
  margin-bottom: 24px;
  margin-left: 5%;
  box-shadow: 0 0 4px rgba(217, 217, 217, 0.98);
  border: 1px solid rgba(217, 217, 217, 1);
  border-radius: 4px;
  position: relative;
  .invoice-brief-amount-area {
    height: 100%;
    border-right: 1px solid #F3F3F3;
    padding: 0 10px;
    a {
      height: 30px;
      line-height: 30px;
      font-size: 12px;
    }
    .invoice-brief-amount-detail {
      .ant-col-10, .ant-col-14 {
        height: 25px;
        line-height: 25px;
        font-size: 12px;
        color: #666666;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .ant-col-10 {
        text-align: right;
      }
      .errorMark {
        background-color: #FFF1F1;
        color:#FF6680;
        min-width: 80px;
        height: 25px;
        line-height: 25px;
        font-size: 12px;
        text-align: center;
      }
    }
  }
  .invoice-brief-content-area {
    padding: 0 20px;
    position: relative;
    div {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    span {
      display: inline-block;
    }
    a {
      position: absolute;
      right: 20px;
      top: 0;
      text-align: right;
      display: inline-block;
      height: 25px;
      line-height: 25px;
      font-size: 12px;
    }
    .invoice-type {
      height: 25px;
      line-height: 25px;
      color: #666666;
      font-size: 18px;
      font-weight: 700;
      margin-left: 20px;
      position: relative;
      .operate-buttons {
        position: absolute;
        right: -10px;
        top: -2px;
        padding-left: 10px;
        background: #fff;
        .button-delete, .button-update, .button-print {
          margin-right: 10px;
        }
        .button-delete {
          background: $default-color-inverse;
          border-color: $default-color-inverse;
        }
      }
      .free-invoice {
        position: absolute;
        top: 0;
        right: 0;
        display: inline-block;
        height: 25px;
        padding: 0 8px;
        text-align: center;
        line-height: 25px;
        background-color: rgba(230, 247, 255, 1);
        border-radius: 5px;
        font-size: 14px;
        color: $default-color;
        font-weight: normal;
      }
    }
    .invoice-brief-content {
      margin-top: 5px;
      .ant-col-12 {
        height: 25px;
        line-height: 25px;
        font-size: 12px;
        color: #666666;
        .title {
          color: #999999;
        }
      }
      .ant-col-24 {
        height: 25px;
        line-height: 25px;
        font-size: 12px;
        color: #666666;
        span {
          vertical-align: top;
        }
        .ant-tag {
          margin-top: 2px;
        }
      }
    }
  }
  .alert-tip {
    .ant-alert-icon {
      top: 6px;
    }
  }
  .card-sign-type-icon {
    width: 25px;
    height: 25px;
    position: absolute;
    right: 10px;
    bottom: 5px;
  }
}
